﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="add_guest.aspx.cs" Inherits="add_guest" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div align="center">
    <br /><br /><br />
    <img src="Image/add-guest.png" alt=""/><br /><br />
    <table>
        <tr><td style="color: #FFCC66">GUEST ID : </td>
        <td><asp:Label ID="Label3" runat="server" ForeColor="#FFCC66"></asp:Label>&nbsp;&nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Text=""></asp:Label></td></tr>
        <tr>
            
            <td style="color: #FFCC66">PRENAME : </td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="orclDataSource4" DataTextField="PRENAME" 
                    DataValueField="PRENAME_ID" BackColor="#FFCC66" Width="190px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="orclDataSource4" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString4 %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString4.ProviderName %>" 
                    SelectCommand="SELECT PRENAME_ID, PRENAME FROM PRENAMES">
                </asp:SqlDataSource>
                <asp:Label ID="Label4" runat="server" Text=""></asp:Label>
            </td>
        </tr>

        <tr>
            <td style="color: #FFCC66">FRISTNAME : </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" BackColor="#FFCC66" Width="190px" 
                    BorderColor="#FF9966"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                        runat="server" ErrorMessage="*" ControlToValidate="TextBox1" 
                    ForeColor="#FFCC66"></asp:RequiredFieldValidator></td>
        </tr>

        <tr>
            <td style="color: #FFCC66">LASTNAME : </td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server" BackColor="#FFCC66" Width="190px" 
                    BorderColor="#FF9966"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                        runat="server" ErrorMessage="*" ControlToValidate="TextBox2" 
                    ForeColor="#FFCC66"></asp:RequiredFieldValidator></td>
        </tr>

        <tr>
            <td style="color: #FFCC66">ADDRESS : </td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server" BackColor="#FFCC66" Width="190px" 
                    TextMode ="MultiLine" BorderColor="#FF9966" Height="75px"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" 
                    ControlToValidate="TextBox3" ForeColor="#FFCC66"></asp:RequiredFieldValidator></td>
        </tr>

        <tr>
            <td style="color: #FFCC66">TELEPHONE No. : </td>
            <td>
                <asp:TextBox ID="TextBox4" runat="server" BackColor="#FFCC66" Width="190px" 
                    BorderColor="#FF9966"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator4"
                        runat="server" ErrorMessage="*" ControlToValidate="TextBox4" 
                    ForeColor="#FFCC66"></asp:RequiredFieldValidator></td>
        </tr>

        <tr>
            <td style="color: #FFCC66">GUEST TYPE : </td>
            <td><asp:DropDownList ID="DropDownList2" runat="server" BackColor="#FFCC66" 
                    DataSourceID="orclDataSource1" DataTextField="EXPR1" DataValueField="GUEST_TYPE_ID" 
                    Width="180px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="orclDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString8 %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString8.ProviderName %>" 
                    
                    SelectCommand="SELECT GUEST_TYPE_NAME AS EXPR1, GUEST_TYPE_ID FROM GUEST_TYPE">
                </asp:SqlDataSource>
            </td>
        </tr>

         <!--<tr>
            <td></td>
            <td></td>
        </tr>-->

        <tr>
            <td></td>
            <td>
                <asp:Button ID="Button1" runat="server" Text="ADD" BackColor="#FFCC66" 
                    Height="25px" Width="85px" onclick="Button1_Click" BorderColor="#FF9966" />&nbsp;&nbsp;&nbsp; 
                <asp:Button ID="Button2"
                    runat="server" Text="Cancel" BackColor="#FFCC66" Height="25px" 
                    Width="85px" onclick="Button2_Click" BorderColor="#FF9966" 
                    CausesValidation="False" /></td>
        </tr>

        <tr>
            <td></td>
            <td><asp:Label ID="Label1" runat="server" ForeColor="#FFCC66"></asp:Label></td>
        </tr>

        <tr>
            <td></td>
            <td>
                <asp:Button ID="Button3" runat="server" Text="<< Back" BackColor="#FFCC66" 
                    onclick="Button3_Click" Height="25px" Width="85px" BorderColor="#FF9966" 
                    CausesValidation="False" /></td>
        </tr>
        
    </table>




</div>

</asp:Content>

